import { Controller, Get, Render } from '@nestjs/common';


@Controller()
export class AppController {

  @Get()
  @Render('home/index')
  index() {
    return { message: 'Hello world!' };
  }


  @Get('detail')
  @Render('home/detail')
  detail() {
    return { message: 'Hello world!' };
  }
}
